﻿@using WineStore.Extends;
@using PagedList.Mvc;
@model PagedList.IPagedList<WineStore.Models.Product>
@{
    Layout = null;
}
<div id="blockbestsellers-home">
    <div class="block_content">
        <ul>
            @foreach (var viewModelItem in Model)
            {
                <li class="bestseller-3"><a class="product_image" href="" title="2005 Amity Wine Cabernet Sauvignon">
                    @Html.ImageFor(product => "../../Content/Images/Products/" + viewModelItem.ProductImage, new { style = "width:100px;height:176px;" })
                </a>
                    <div>
                        <span class="price">@Html.DisplayFor(product => viewModelItem.ProductPrice)</span>
                        <h5>
                            <a href="">2005 Amity Wine Cabernet Sauvignon</a></h5>
                            
                        <p>
                            <a href="" style="color:Red;">@Html.DisplayFor(product=>viewModelItem.ProductName)</a></p>
                        @Html.ActionLink("Add to cart", "AddToCart", "ShoppingCart", new { id = viewModelItem.ProductId }, new { @Class = "add2cart" })
                        @Html.ActionLink("Add to cart", "AddToCart", "ShoppingCart", new { id = viewModelItem.ProductId }, "")
                    </div>
                </li>
            }
        </ul>
        <div class="clearblock">
        </div>
    </div>
</div>
<div style="position: relative; padding-top: -5px; padding-bottom: 30px; padding-left: 378px;
    margin-top: -5px;">
    <!--Paging-->
    @Html.PagedListPager(Model, page => Url.Action("Index", new { categoryId = ViewBag.CategoryId, page = page, currentFilter = ViewBag.CurrentFilter, currentFilter2 = ViewBag.CurrentFilter2, currentFilter3 = ViewBag.CurrentFilter3 }), (PagedListRenderOptions)ViewBag.Pro)
</div>
<!-- /MODULE Home Block best sellers -->
